package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizOrder;
import com.member.shop.vo.OrderCodeVo;
import com.member.shop.vo.SysBizOrderExportVo;

import java.util.List;

/**
 * 订单Mapper接口
 *
 * @author lixinchen
 * @date 2024-01-08
 */
public interface SysBizOrderMapper extends BaseMapper<SysBizOrder> {
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public SysBizOrder selectSysBizOrderById(Long id);

    /**
     * 查询订单列表
     *
     * @param sysBizOrder 订单
     * @return 订单集合
     */
    public List<SysBizOrder> selectSysBizOrderList(SysBizOrder sysBizOrder);

    /**
     * 新增订单
     *
     * @param sysBizOrder 订单
     * @return 结果
     */
    public int insertSysBizOrder(SysBizOrder sysBizOrder);

    /**
     * 修改订单
     *
     * @param sysBizOrder 订单
     * @return 结果
     */
    public int updateSysBizOrder(SysBizOrder sysBizOrder);

    /**
     * 删除订单
     *
     * @param id 订单主键
     * @return 结果
     */
    public int deleteSysBizOrderById(Long id);

    /**
     * 批量删除订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizOrderByIds(Long[] ids);

    /**
     * 查询订单列表(统计)
     *
     * @param sysBizOrder 订单
     * @return 订单集合
     */
    List<SysBizOrder> listOrderCount(SysBizOrder sysBizOrder);

    //导出
    List<SysBizOrderExportVo> selectSysBizOrderExportList(SysBizOrder sysBizOrder);

    List<OrderCodeVo> listOrderCode();

    List<OrderCodeVo> listReceiver();

    List<OrderCodeVo> listContactNumber();
}
